package com.luyuan.crm.question.service;

import java.util.List;

import org.hibernate.criterion.Order;

import com.luyuan.crm.member.model.Customer;
import com.luyuan.crm.question.model.Question;
import com.luyuan.crm.question.model.QuestionValue;
import com.ruijie.foundation.annotation.DomainService;
import com.ruijie.foundation.query.Page;
import com.ruijie.foundation.query.criteria.CriteriaTemplate;

@DomainService
public interface QuestionValueService {
    /*
     * 分页查询
     */
    public Page pagedQuery(CriteriaTemplate criteria, int pageNo, int pageSize, List<Order> orders);

    public void removeByQuestionId(int id);

    void saveQuestionValue(QuestionValue extend);

    void updateQuestionValue(QuestionValue extend);

    List<QuestionValue> findByCustomer(Customer customer, Question question);

    /**
     * <p>Description:  会员所有的申请表            </p>
     * <p>Create Time: 2013-5-1   </p>
     * @author Administrator
     * @param customer
     * @return
     */
    List<Question> getQuestionsByCustomer(Customer customer);

}
